package etnorservice.etnor_service.service;

import etnorservice.etnor_service.domain.po.LoginAndRegister;
import etnorservice.etnor_service.domain.po.MenuItem;
import etnorservice.etnor_service.domain.po.User;
import etnorservice.etnor_service.domain.po.UserDetails;
import etnorservice.etnor_service.domain.vo.DeveloperVO;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/08/22/15:07
 **/
public interface UserService {
    List<User> findUserByAccountAndPassword(User user);
    User findRoleByAccount(Integer account);
    List<DeveloperVO> findDevelopers();
    DeveloperVO findDeveloperById(Integer id);
    UserDetails findUserDetail(String account);

    List<MenuItem> findUserPermissions(Integer userId);

    Integer getSumDeveloper();

    // 添加注册用户方法
    void registerUser(LoginAndRegister register);


    List<User> findRoleByEmail(String email);
}
